<?php
namespace app\mobile\model;

/**
 * Class ShopGoodsEvaluate
 * @package app\mobile\model  会员商品评价表
 */
class ShopGoodsEvaluate extends BaseModel
{
    /*
     * 会员评价和会员多对一
     */
    public function member()
    {
        return $this->belongsTo('Member','member_id','id')->field('id,nickname,avatar');
    }

    public function getCreateTimeAttr($value)
    {
        return date('Y-m-d',$value);
    }
}